package com.zlq.sen;

import com.zlq.pojo.User;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "user")
public class HelloReceiver {
    @RabbitHandler
    public void process(User user){
        System.out.println("接收者为"+user);
    }
}
